package com.myz.app.example.mapper;

import java.util.List;

/**
 * @author maoyz on 18-4-9.
 */
public interface EntityMapper<T> {

    T createEntity(T entity);

    T updateEntity(T entity);

    void deleteEntity(Long entityId);

    T findOne(Long entityId);

    List<T> findAll();
}
